package com.hyk.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
public class LoginUser implements Serializable {

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("token")
    private String access_token;

    @ApiModelProperty("刷新token")
    private String refresh_token;

    @ApiModelProperty("过期时间")
    private Long expire;

    public LoginUser() {
    }

    public LoginUser(String username, String access_token, String refresh_token, Long expire) {
        this.username = username;
        this.access_token = access_token;
        this.refresh_token = refresh_token;
        this.expire = expire;
    }
}
